//
// Created by mcy on 2017/10/14.
//
#include "assert.h"
using namespace std;

void errorAndExit()
{
    cout << "Assert Failed!" << endl;
    //程序异常退出
    exit(1);
}
void assert (int res)
{
    if (res == 0)
    {
        errorAndExit();
    }
}
